Assignemnt #83 and 82th program
Code
///Name: Derrick Andreasen
///Period: 7
///Program name: 83th Program
///File name: Eigh2prog.java
///Date Finished:1/8/2016
import java.util.Scanner;
import java.util.Random;
public class Eigh2prog
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
double x, y;
System.out.println( "x y" );
System.out.println( "" );
System.out.println( "--------------" );
for(x = -10.0; x<= 10.0; x = x + 0.5)
{
y = x*x
System.out.println( x + " " + y );
}
}
}
Picture of the output